<template>
    <div class="div-basic">
        <Card>
            <div class="cusotinfo">
                <h2 class="mb10"> 客户信息</h2>
                <ul class="over">
                    <li>申请编号：{{baseInfoForm.camainNo}}</li>
                    <li>客户姓名：{{baseInfoForm.borrowerName}}</li>
                    <li>证件号码：{{baseInfoForm.card}}</li>
                    <li>VIN号：{{baseInfoForm.vin}}</li>
                    <li>业务分类：{{baseInfoForm.businessTypeName}}</li>
                    <li>归档状态：{{baseInfoForm.statusfilename}}</li>
                    <li>最后邮寄期限：{{baseInfoForm.limitDate}}</li>
                </ul>
            </div>
        </Card>
        <Card>
            <div class="attacheinfo">
                <h2 class="mb10">挂靠单位信息</h2>
                <ul class="over"> 
                    <ul>
                        <li v-show="anchoredinfo.anchoredtypename"><span>挂靠方式:</span><span>{{anchoredinfo.anchoredtypename}}</span></li>
                        <li v-show="anchoredinfo.company"><span>公司名称:</span><span>{{anchoredinfo.company}}</span></li>
                        <li v-show="anchoredinfo.license"><span>营业执照号码:</span><span>{{anchoredinfo.license}}</span></li>
                        <li v-show="anchoredinfo.individualBusiness"><span>个体工商户名称:</span>{{anchoredinfo.individualBusiness}}<span></span></li>
                        <li v-show="anchoredinfo.legalPerson"><span>法人姓名:</span><span>{{anchoredinfo.legalPerson}}</span></li>
                        <li v-show="anchoredinfo.phone"><span>联系电话:</span><span>{{anchoredinfo.phone}}</span></li>
                    </ul>
                </ul>
            </div>
        </Card>
    </div>
</template>

<script>
    import {getByTypes} from "../../../../basic/api/admin/datadic";
    import {deepClone} from "../../../../../libs/utils/ObjectClone";
    import {
        getCodes,
    } from "_p/afs-apply/api/mail-manage/orderMailList.js";
    import * as utils from '_p/afs-apply/assets/js/utils.js'
    export default {
        props: {
            baseInfoForm: {
                type:Object
            },
            anchoredinfo:{
                type:Object
            }
        },
        name: "baseInfo",
        data() {
            return {
                statusList:[],
                dataDic:[],
            }
        },
        mounted() {
            // this.initGetAllDicData();
        },
        methods: {
            //批量获取数据字典
            initGetAllDicData() {
                //数据字典
                let arr = ["businessType",];
                getByTypes(arr).then(res => {
                    if (res.code === "0000") {
                        this.dataDic = deepClone(res.data);
                    }
                });
            },
        },
    }
</script>
<style lang="less" scoped="scoped">
    .div-basic{
        .cusotinfo li,.attacheinfo li{
            width: 33.3%;
            float: left;
            margin-bottom:15px;
        }
    }
</style>
